import request from '@/utils/request'

// 查询退货出库管理列表
export function listReturnOutbound(query) {
  return request({
    url: '/OutboundManagement/returnOutbound/list',
    method: 'get',
    params: query
  })
}
// export function returnOutbound(query) {
//   return request({
//     url: '/OutboundManagement/deliveryOperation/list',
//     method: 'get',
//     params: query
//   })
// }
export function returnOutbound(query) {
  return request({
    url: 'OutboundManagement/deliveryOperation/findByZhijianList',
    method: 'get',
    params: query
  })
}
// 查询退货出库管理详细
export function getReturnOutbound(returnId) {
  return request({
    url: '/OutboundManagement/returnOutbound/' + returnId,
    method: 'get'
  })
}

// 新增退货出库管理
export function addReturnOutbound(data) {
  return request({
    url: '/OutboundManagement/returnOutbound',
    method: 'post',
    data: data
  })
}

// 修改退货出库管理
export function updateReturnOutbound(data) {
  return request({
    url: '/OutboundManagement/returnOutbound',
    method: 'put',
    data: data
  })
}

// 删除退货出库管理
export function delReturnOutbound(returnId) {
  return request({
    url: '/OutboundManagement/returnOutbound/' + returnId,
    method: 'delete'
  })
}
